# -*- coding: utf-8 -*-
"""
Created on Sun Aug 24 13:21:28 2014

@author: loseair123

def fun():
    return 1;

num1=int(raw_input('plz input num1'))
num2=int(raw_input('plz input num2'))

if num1>num2:
    print 'num1 is bigger'
    if num1>100:
        print 'num1 is bigger than 100'
elif num1>num2:
    print 'num2 is bigger'
elif num1==num2:
    print 'num1 equals num2'
        


if num1 and num2:
    print 'and'
elif not num1:
    print 'not'
elif num1 or num2:
    print 'or'


#for 循环

for x in 'abcdefg':
    print x

str1='abcdefg'
for x in range(len(str1)):
    print str1[x]
    

for x in range(1,len(str1),2):
    print x

#从1加到100
num=0
for x in range(1,101):
    num+=x
print num    
 
student={'id':133748,'dep':'ECE','type':'graduate'}
for y in student:
    print student[y]


for k,v in student.items():
    print k
    print v
else:
    print 'ended!' #正常执行完成后执行
    
    
""" 

#循环控制 
import time
for x in range(1,11):
    if x==1:
        pass #占位符
    if x==2:
        print 'continue'
        continue
    if x==60:
        print 'break'
        break
    if x==18:
        exit()
    print '$'*10
else:
    print 'success end'
    
for x in range(1,5):
    print '*'*x
    time.sleep(1)

j=''
while j!='q':
    j=raw_input('plz in put,q for exit')
    if not j:
        break
else:
    print 'while successfully ended'